// g++ duel.cpp -o duel -std=c++14 -fsanitize=address -O2 -Wall -Wextra
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define INF 0x3f3f3f3f3f3f3f3f
template<typename T> void up(T &x, T y) { x = (x > y ? x : y); }
template<typename T> void down(T &x, T y) { x = (x < y ? x : y); }
#define rep(i, a, b) for(int i = (a), i##END = (b); i <= (b); i++)
#define Rep(i, a, b) for(int i = (a), i##END = (b); i >= (b); i--)
#define N ((int)(1e5 + 15))

int n, mx, a[N], b[N];
signed main()
{
    ios::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    // freopen("check.in", "r", stdin);
    // freopen("check.out", "w", stdout);
    
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);

    cin >> n; rep(i, 1, n) { cin >> a[i], ++b[a[i]]; }
    sort(a + 1, a + 1 + n, greater<int>()); mx = 1;
    rep(i, 2, n) { if(b[a[i]] > b[a[mx]]) mx = i; }
    cout << b[a[mx]] << '\n';
    return 0;
}